package com.cyt.website.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.website.model.po.WebsiteAdvertisement;
import com.cyt.website.model.vo.WebsiteAdvertisementVo;
import com.cyt.sys.model.po.SysUser;
import com.cyt.sys.service.BaseService;

import java.util.List;

/**
 * 官网广告管理-官网广告管理Service层接口类
 *
 * @author congcong tao
 * @date 2019-8-20 8:28:24
 */
public interface WebsiteAdvertisementService extends BaseService<WebsiteAdvertisement> {

    /**
     * 查询对象集合
     *
     * @param websiteAdvertisementVo 对象
     * @return List 对象集合
     * @author congcong tao
     * @date 2019-8-20 8:28:24
     */
    List<WebsiteAdvertisement> listExample(WebsiteAdvertisementVo websiteAdvertisementVo);

    /**
     * 分页查询
     *
     * @param websiteAdvertisementVo 接受参数对象
     * @param pageNum          分页数
     * @param pageSize         每页显示条数
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-20 8:28:24
     */
    ReturnResult page(WebsiteAdvertisementVo websiteAdvertisementVo, int pageNum, int pageSize);

    /**
     * 添加或更新
     *
     * @param websiteAdvertisementVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-20 8:28:24
     */
    ReturnResult addOrUpdate(WebsiteAdvertisementVo websiteAdvertisementVo, SysUser sysUser);

    /**
     * 根据条件逻辑删除
     *
     * @param websiteAdvertisementVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-20 8:28:24
     */
    ReturnResult remove(WebsiteAdvertisementVo websiteAdvertisementVo, SysUser sysUser);

    /**
     * 根据条件物理删除
     *
     * @param websiteAdvertisementVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-20 8:28:24
     */
    ReturnResult delete(WebsiteAdvertisementVo websiteAdvertisementVo, SysUser sysUser);
}